/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sinosoft.feign.oauth2;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @author root
 */

@FeignClient(value = "OAUTHSERIVCE")
public interface OauthFeign {

    @RequestMapping("/user")
    public JSONObject oauth2user(@RequestParam("access_token") String access_token);

}
